* (bug 14398) mwsuggest.js: Let width of container be configurable
* (bug 15543) Only include user touched timestamp to generated CSS
* (bug 15497) Removed encoding attribute from <?xml ?> tag
+* (bug 15544) Wiki not set up message (NoLocalSettings.php) now works for
+ non-index.php entry pages (e.g. api.php). Patch by Matt Johnston.
=== API changes in 1.14 ===
if( isset( $_SERVER['SCRIPT_NAME'] )) {
$path = htmlspecialchars( preg_replace('/index.php5?/', '', $_SERVER['SCRIPT_NAME']) );
}
+#Remove filename in path, prevents going to corrupt URLs (e.g. http://server/path/api.phpconfig/index.php)
+if(substr($path, strlen($path)-1) != "/"){
+ $path = substr($path, 0, strrpos($path, "/")+1);
+}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>